home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11276 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Is COBOL Dead?!
  5. Date: 22 Mar 1996 13:58:34 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4iv7qaINN326@keats.ugrad.cs.ubc.ca>
  8. References: <4ibtqm$1u7@news.netcentral.co.uk> <329681.7685.12167@kcbbs.gen.nz> <4iud7l$g0c@mrnews.mro.dec.com>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4iud7l$g0c@mrnews.mro.dec.com>,
  12. Bart Gerardi  <gerardi_b@wmodev.enet.dec.com> wrote:
  13.  >
  14.  >>In what way is Cobol crap ?  It does the job it was designed to do
  15.  >>probably better than any other language.  Of course no one would
  16.  >>want to write games in it, or operating systems, but then they
  17.  >>are not business systems.
  18.  >>
  19.  >The above is exactly right.  COBOL is the BEST at what it does.
  20.  >It doesn't do much, put it is perfect for Business systems
  21.  >(notice my .sig) VAX/BASIC is okay, too.  You try to get stars
  22.  >to print instead of zeros in a C program....
  23.  
  24. Stars instad of zeros? That's acceptable if you are sending someone an invoice
  25. and the year is 1965.
  26.  
  27. With C's standard output, I can generate source code for a real typesetting
  28. processor. Don't need star padding for that!
  29.  
  30. I _have_ written a C end-of-month billing program that does just this. Laser
  31. printed output that even puts a little letter-head on the first page with an
  32. EPSF logo. Proportionally-spaced high-resolution font, perfectly aligned
  33. tables... and the program can easily be configured to output HTML, straight
  34. ascii or what have you, without re-compiling. It needs less resources than a
  35. COBOL environment. A slick B+Tree RDBMS that blasts raw C structures to and
  36. from disk, and a simple command parser to do the queries and updates.
  37.  
  38. If you need the damn stars for old time's sake to scare clients away, it you
  39. can always write a printf-like routine to do it, and it will still beat COBOL.
  40.  
  41.  >>Cobol version outperforms the C version.  Then again, most
  42.  >>business applications don't need a lot of grunt - how much
  43.  >>processor time does it take to multiply a price by a quantity
  44.  >>and add the tax ?
  45.  >>
  46.  >
  47.  >C is much faster at higher level math, this is correct.  But,
  48.  >how often in end-of-month billing to raise something to 
  49.  >a power?  For business, COBOL is faster.  It's compiler
  50.  >and interpreter are bigger, though, I believe.
  51.  
  52. Who cares? Computers were invented to calculate how to launch missiles at your
  53. Cold War opponent, and to do cryptography! For that, you need speed-o-rama
  54. efficiency even today!
  55.  
  56. That they are useful to business is a side-effect... Well, war is a form of
  57. business, I'll give you that!
  58.  
  59.  >>Whether Cobol is long-winded or not, and whether it matters,
  60.  >>depends on several factors beyond the understanding of a
  61.  >>student used to write-only languages.
  62.  >>
  63.  >
  64.  >Once that student becomes a person, he'll understand...
  65.  
  66. Haha. A suspender-snapping three-piece suit buffoon with a diversified
  67. investment portfolio and a pot belly.
  68. -- 
  69.  
  70.